// NewDirDlg.cpp : implementation file
//

#include "stdafx.h"
#include "VISUAL ASM.h"
#include "NewDirDlg.h"


// CNewDirDlg dialog

IMPLEMENT_DYNAMIC(CNewDirDlg, CDialog)

CNewDirDlg::CNewDirDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CNewDirDlg::IDD, pParent)
{
	m_isCancel = FALSE;
}

CNewDirDlg::~CNewDirDlg()
{
}

void CNewDirDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Control(pDX, IDC_EDIT1, m_editDirName);
}


BEGIN_MESSAGE_MAP(CNewDirDlg, CDialog)
	ON_BN_CLICKED(IDOK, &CNewDirDlg::OnBnClickedOk)
	ON_BN_CLICKED(IDCANCEL, &CNewDirDlg::OnBnClickedCancel)
END_MESSAGE_MAP()


// CNewDirDlg message handlers

void CNewDirDlg::OnBnClickedOk()
{
	// TODO: Add your control notification handler code here
	m_editDirName.GetWindowText(m_strDirName);
	OnOK();
}

void CNewDirDlg::OnBnClickedCancel()
{
	// TODO: Add your control notification handler code here
	m_isCancel = TRUE;
	OnCancel();
}

CString CNewDirDlg::GetDirName()
{
	return m_strDirName;
}

BOOL CNewDirDlg::IsCancel()
{
	return m_isCancel;
}